<template>
  <div id="app">
  这是111
    <router-view />
  </div>
</template>
<script>
 export default{
     data() {
    return {
      routerKey: 0, // 用于局部刷新
      isRouterAlive: true,
    };
  },
    provide() {
    return {
      reload: this.reload,
    };
  },
   methods:{
       reload() {
      this.isRouterAlive = false;
      this.$nextTick(function () {
        this.isRouterAlive = true;
      });
    },
   },
   mounted(){
    console.log(process.env.NODE_ENV,'111');
   }
 }
</script>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
}

</style>
